package cn.icanci.ladybird.controller;

import cn.icanci.ladybird.service.util.JavaMailByQqService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: icanci
 * @date: Created in 2020/10/4 8:50
 * @classAction: 邮件发送的控制层
 */
@Controller
@RequestMapping("/api/v1/pub/common")
public class SendEmailController {
    @Autowired
    private JavaMailByQqService javaMailByQqService;
    /**
     * 根据邮箱发送信息
     * @param email 邮箱地址
     * @return 返回状态码
     */
    @ResponseBody
    @RequestMapping("/email")
    public String getEmailCode(@Param("email") String email) {
        javaMailByQqService.sendMail("","");
        return null;
    }

}
